package com.springcloud.auth.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.springcloud.commom.entity.BaseEntity;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author hzl
 * @since 2019-12-21
 */
@Data
@TableName("t_token")
public class TToken extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @TableField("user_id")
    private String userId;

    @TableField("access_token")
    private String accessToken;

    @TableField("refresh_token")
    private String refreshToken;

    private String token;
    
    @TableField(value = "access_update_time",fill = FieldFill.INSERT)
    private Date accessUpdateTime;
    
    @TableField(value = "refresh_update_time",fill = FieldFill.INSERT)
    private Date refreshUpdateTime;
}
